package com.wenhai.easyexcel;

import com.google.common.base.Splitter;

import java.util.List;

import static java.util.stream.Collectors.*;

public class PathDemo {
    public static void main(String[] args) {
//        String fileName = PathDemo.class.getResource("/").getPath() + "META-INF" + File.separator + "demo.xlsx";
//        System.out.println(fileName);
//        EasyExcel.read(fileName, User.class, new UserListener(new UserMapper())).sheet().doRead();
        String ids = "123,,1233,444";
        List<Long> idList =
                Splitter.on(",").omitEmptyStrings().splitToList(ids).stream().map(Long::parseLong).collect(toList());
        System.out.println(idList);

    }
}
